package com.itheima.varible;

public class VaribleDemo1 {
    public static void main(String[] args) {
        //1.定义一个整型变量记住一个整数
        int age = 18;
        System.out.println(age);
        //2.定义一个浮点型变量记住一个小数
        double score = 98.5;
        System.out.println(score);

        System.out.println("------------------");

        //2.1 变量的特点，里面装的数据可以被替换
        int age1 = 20;
        System.out.println(age1);
        age1 = 25;
        System.out.println(age1);
        age1 = age1 + 5;
        System.out.println(age1);

        System.out.println("------------------");
        //3.定义一个字符型变量记住一个字母
        char gender = '男';
        System.out.println(gender);
        //4.定义一个布尔类型变量记住真假
        boolean flag = true;
        System.out.println(flag);
    }
}
